package com.cloudcc.mobile.dao.impl;

import org.json.JSONObject;

import com.cloudcc.cloudframe.net.ResultCallBack;
import com.cloudcc.cloudframe.net.async.BeanRequest;
import com.cloudcc.mobile.dao.BaseEngine;
/**
 * 
 * @author lhy
 *日历管理
 *@date 2015/11/26
 */
public class CreateNewScheduleEngineImpl extends BaseEngine{
		//保存新建日程
	public void SaveNewScheduleRequest(JSONObject json, ResultCallBack<Object> listener){
		BeanRequest<Object> request = new BeanRequest<Object>(){};
		request.setResultListener(listener);
		sendPost(json, request, "saveTaskOrEvent", true);
	}
	//保存新建任务
	public void SaveNewTaskRequest(JSONObject json, ResultCallBack<Object> listener){
		BeanRequest<Object> request = new BeanRequest<Object>(){};
		request.setResultListener(listener);
		sendPost(json, request, "saveTaskOrEvent", true);
	}
}
